package com.zhixi.principle.openclosedprinciple.operation;

/**
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/14 17:54
 */
public class ComputerBookImpl implements ComputerBook {

    /* 书籍名称 */
    private String name;
    /* 书籍价格 */
    private int price;
    /* 书籍作者 */
    private String author;
    /* 书籍范围 */
    private String scope;

    public ComputerBookImpl(String name, int price, String author, String scope) {
        this.name = name;
        this.price = price;
        this.author = author;
        this.scope = scope;
    }

    @Override
    public String getScope() {
        return this.scope;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public int getPrice() {
        return this.price;
    }

    @Override
    public String getAuthor() {
        return this.author;
    }
}
